package com.zhuhjay.boot.mapper;

import com.zhuhjay.domain.entity.CheckGroup;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhuhjay
 * @since 2022-04-02
 */
public interface CheckGroupMapper extends BaseMapper<CheckGroup> {

    void addRelationAndItemId(@Param("itemId") Integer itemId, @Param("groupId")Integer groupId);

    List<Integer> queryCheckitemAndCheckgroupRelateion(Integer id);

    void clearCheckitemAndCheckgroupRelateion(Integer id);
}
